<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>">
	<title>Simpla Admin | Sign In</title>
	<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
			<meta http-equiv="expires" content="0">
				<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>考勤</title>
<style type="text/css">
body {
	background-repeat: no-repeat;
	background-color: #FFF;
	background-size: cover;
	background-image:url(resources/images/background.jpg);
}

body,td,th {
	font-family: "微软雅黑";
	font-size: 40px;
	color: #000000;
}
</style>
</head>

<body>
	<table width="677" height="517" border="0" align="center">
		<tr>
			<td width="671" height="104"><center>
					<p>&nbsp;</p>
					<p>
						<strong>加油！明天见！</strong>
					</p>
				</center></td>
		</tr>
		<tr>
			<td height="407"><table width="620" height="396" border="0"
					align="center">
					<tr>
						<td height="212"><center>
								<img src="resources/images/9.png" width="200" height="200"
									align="middle" />
							</center></td>
						<td><center>
								<img src="resources/images/11.png" width="200" height="200" />
							</center></td>
					</tr>
					<tr>
						<%
							int signState = (Integer)session.getAttribute("signstate");
							
							if(signState == 0){
								out.print("<td height=\"104\"><center><Form action=\"SignInServlet.do\" method=\"post\"><input disable=\"true\" name=\"\" type=\"submit\" value=\"我要签到\" style=\"width:100px; height:50px;\" /></Form> </center></td>");
								out.print("<td height=\"104\"></td>");
							}
							else if(signState == 1) {
								out.print("<td height=\"104\"></td>");
								out.print("<td height=\"104\"><center> <Form action=\"SignOutServlet.do\" method=\"post\"><input name=\"\" type=\"submit\" value=\"我要签退\" style=\"width:100px; height:50px;\" /></Form> </center></td>");
							}
							else {
								out.print("<td height=\"104\"></td>");
								out.print("<td height=\"104\"></td>");
							}
						 %>
					</tr>
				</table></td>
		</tr>
	</table>
</body>
</html>
